package com.iflytek.universitymanagement.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iflytek.universitymanagement.domain.PsyQuestions;
import com.iflytek.universitymanagement.mapper.PsyQuestionsMapper;
import com.iflytek.universitymanagement.service.PsyQuestionsService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class PsyQuestionsServiceImpl extends ServiceImpl<PsyQuestionsMapper, PsyQuestions> implements PsyQuestionsService {
    @Autowired
    private PsyQuestionsMapper psyQuestionsMapper;

    @Override
    public List<PsyQuestions> getAllQuestions() {
        return psyQuestionsMapper.selectList(null);
    }

    @Override
    public void addQuestion(PsyQuestions psyQuestions) {
        psyQuestionsMapper.insert(psyQuestions);
    }
}
